package com.framework.modules.base.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.framework.common.utils.DateUtils;
import com.framework.common.utils.PageUtils;
import com.framework.common.utils.Query;
import com.framework.modules.base.dao.SimilarLocationUserListDao;
import com.framework.modules.base.dao.UserLocationDao;
import com.framework.modules.base.entity.SimilarLocationUserListEntity;
import com.framework.modules.base.entity.UserLocationEntity;
import com.framework.modules.base.service.SimilarLocationUserListService;
import com.framework.modules.base.service.UserLocationService;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;


@Service("similarLocationUserListService")
public class SimilarLocationUserListServiceImpl extends ServiceImpl<SimilarLocationUserListDao, SimilarLocationUserListEntity> implements SimilarLocationUserListService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<SimilarLocationUserListEntity> page = this.selectPage(
                new Query<SimilarLocationUserListEntity>(params).getPage(),
                new EntityWrapper<SimilarLocationUserListEntity>()
        );
        return new PageUtils(page);
    }

    @Override
    public List<SimilarLocationUserListEntity> getSimilarLocationUserList(Map<String, Object> para) {
        return this.baseMapper.getSimilarLocationUserList(para);
    }


}
